<script>
	export default {
		onLaunch: function() {
			let titleHeight = 0;  //状态栏和导航栏的总高度
			let naviBarHeight = 0 //导航栏高度
			const res = uni.getSystemInfoSync()
			const system = res.platform
			// console.log('res ==>', res)
			let statusBarHeight = res.statusBarHeight; //状态栏高度
			if (system === 'android') {
				titleHeight = (48 + statusBarHeight)
			} else if (system === 'ios') {
				titleHeight = (44 + statusBarHeight)
			}
			naviBarHeight = titleHeight - statusBarHeight
			let systemInfo={
				system: system,
				titleHeight: titleHeight,
				statusBarHeight: statusBarHeight,
				naviBarHeight: naviBarHeight,
				windowWidth: res.windowWidth,
				windowHeight: res.windowHeight,
			}
			uni.setStorageSync('systemInfo', systemInfo)
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f9f9f9;color: #333333;
	}
	/*每个页面公共css */
	@import "@/assets/style/hami.scss";
	@import "uview-ui/index.scss";
	@import "@/common/iconfont.css";
</style>
